<!DOCTYPE html>
<html lang="zh-cn">
  <head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="author" content="坤子">
  {% if not is_blog_view %}<title>Python基础教程,Python 教程,Python框架-坤子的博客</title>
  <meta name="title" content="Python基础教程,Python 教程,Python框架-坤子的博客">
  <meta name="keywords" content="python,python教程,python文章,python学习,python框架,django,flask">
  <meta name="Description" content="专注于pyton、常用Python开源程序及Python WEB 开源框架在线文档,Django,Flask,Uliweb">{% else %}<title> {{ blog.title }} </title>
  <meta name="title" content= {{ blog.title }} >
  <meta name="keywords" content="{% if blog.getTags %} {% for i in blog.getTags %}{{ i.tag.name }} {% endfor %}{% endif %}">
  <meta name="Description" content= "{{ blog.title }} - Python基础教程,Python 教程,Python框架-坤子的博客">
  {% endif %}<meta name="baidu-site-verification" content="MfVwnXmAH7" />
  <link rel='next' href='http://blog.xuyukun.com/about/' />
  <link rel="canonical" href="http://blog.xuyukun.com/" />
  <meta property="og:title" content="坤子 - blog.xuyukun.com" />
  <meta property="og:type" content="blog" />
  <meta property="og:url" content="http://blog.xuyukun.com/" />
    <link rel="shortcut icon" href="/site_media/img/favicon.ico">
    <link href="/site_media/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="/site_media/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
    <link href="/site_media/css/main.css" rel="stylesheet">
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 8]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    {% block css %}{% endblock %}
  </head>
  <body>
      {% include 'common/head.html' %}
      {% if is_blog_view %}<a href="/" class="text-center" style="display: block; margin: 0 auto">返回首页</a>{% endif %}
	{% if not is_blog_view %}
    <div class="container theme-showcase" style="width: 95%;">
        <div class="row">
            <!--左侧-->
            <div class="col-md-9">
                <div class="panel panel-default" style="padding: 20px;">
                    <div class="panel-body">
                        {% block content %}{% endblock %}
                    </div>
                </div>
            </div>
             <!--右侧-->
            <div class="col-md-3">
                {% include 'common/userinfo.html' %}
                <div id="sideinfo"></div>
                {% include 'common/comment.html' %}
                {% block side %}{% endblock %}
            </div>
        </div>
    </div> <!-- /container -->
    {% else %}
        <div class="container theme-showcase" style="width: 95%;">
        <div class="panel-body">
            {% block contentBlog %}{% endblock %}
         </div>
        </div>
    {% endif %}
    <div class="actGotop"><a href="javascript:;" title="返回顶部"></a></div>
   {% include 'common/footer.html' %}
	<script src="http://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
    <script src="/site_media/js/jquery.jbasicext.js"></script>
    <script src="/site_media/js/common.js"></script>
  </body>
	<script type="text/javascript">
	$(function(){   
	    $(window).scroll(function() {      
		if($(window).scrollTop() >= 100){
		    $('.actGotop').fadeIn(300); 
		}else{    
		    $('.actGotop').fadeOut(300);    
		}  
	    });
	    $('.actGotop').click(function(){
	    $('html,body').animate({scrollTop: '0px'}, 800);});
        // 异步加载侧栏
       {% if not is_blog_view %} getSideinfo();{% endif %}
	});
    function getSideinfo(){
        var url='/blog/common/'
        $.post(url,function(data){
            $('#sideinfo').html(data)
        })
    }
	</script>
    {% block js %}{% endblock %}
</html>
